package com.tanhua.manage.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

public enum Age implements IEnum<Integer> {
    CHILDREN(1,"0-17岁"),
    TEENAGER(2,"18-23岁"),
    YOUNGSTER(3,"24-30岁"),
    MATURE(4,"31-40岁"),
    MIDAGE(5,"41-50岁"),
    OLDER(6,"50岁+");

    private int value;
    private String desc;

    Age(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
